#import "Weapon.h"
#import <stdio.h>

@implementation Weapon
- (id) name: (char*) weapon_name {
	name = weapon_name;
	return self;
}
- (char*) name {
	return name;
}
- (id) minAttackPower: hp {
		attack_min = hp;
		return self;
}
- (id) maxAttackPower: hp {
		attack_max = hp;
		return self;
}
- (int) attackPower {
	return (((double)random()/(double)0x7FFFFFFF)*attack_max-attack_min+1)+attack_min;
}
@end
